package com.annual.system.dto.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class ResOrderPayListDto {

    @ApiModelProperty(value = "主键id")
    private Long orderId;

    @ApiModelProperty(value = "支付金额")
    private BigDecimal fee;

    @ApiModelProperty(value = "退款金额")
    private BigDecimal refundAmount = BigDecimal.ZERO;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "支付流水（第三方返回的交易号）")
    private String serialNo;

    @ApiModelProperty(value = "支付时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime payTime;

    @ApiModelProperty(value = "商品标题")
    private String type;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}
